<include path='index/index'/>

<div class="content">
    <div class="box">
    	<div class="doing">
            <form action="/doing/craete" method="post" onSubmit="update_doing($('#doing-input').val()); $('#doing-input').val(''); return false;">
            <div>
                <textarea id="doing-input" rows="2"></textarea>
            </div>
            <div class="desc">
                <label id="char-num">发布当前的状态</label><input type="submit" value="发布" />
            </div>
            </form>
        </div>
    </div>
    
    <div class="box">
    	<div class="notice">
        	<ul>
            	<? foreach($notice as $item){ ?>
            	<li><?=$item['message']?></li>
                <? } ?>
            </ul>
        </div>
    </div>
    <div class="box">
    	<div class="feed">
        	<ul>
            	<? foreach($feed as $item){ ?>
            	<li>
                	<div class="avatar"><img src="<?=avatar($item['m_user_id'])?>" width="50" /></div>
                    <div class="feed-body">
                    	<a href="javascript:void(0);"><?=$item['m_username']?></a> <?=$item['message']?>
                    </div>
                    <div class="func" feedid="<?=$item['feed_id']?>" state="0"><a href="#">加标签</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="#">分享</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="javascript:void(0);" onClick="comment_feed(this);">评论</a></div>
                    <div class="comment"></div>
                </li>
                <? }?>
            </ul>
        </div>
    </div>
</div>
